x11: Avoid a division by zero
authorPavel Roskin <plroskin@gmail.com>
Thu, 8 Mar 2018 14:58:42 +0000 (15:58 +0100)
committerDebarshi Ray <debarshir@gnome.org>
Thu, 8 Mar 2018 15:00:40 +0000 (16:00 +0100)
commitcc967849f7653c697c33571a1a6a55e9ffd966ff
tree0c58efba53cf750922fd222f7ab8616996791de8
parentadd3592809355d037a1ef7d9ad05547827eb3b79
x11: Avoid a division by zero

This is similar to f44baf51d9e8616a but for RandR 1.3 servers like
x11rdp and Windows Exceed which don't return a refresh rate. Avoid a
crash when that happens.

https://bugzilla.gnome.org/show_bug.cgi?id=775546
gdk/x11/gdkscreen-x11.c